#include <stack>
#include <deque>

#include "../3dparty/gtest-support.h"

TEST( StackTestCase, StackTest )
{
    using namespace std;

    stack<int> s;
    s.push( 5 );
    s.push( 8 );

    EXPECT_EQ( 8, s.top() );
    s.pop();
    EXPECT_EQ( 5, s.top() );
}

TEST( DequeTestCase, DequeTest )
{
    using namespace std;

    deque<int> d;
    d.push_back( 1 );
    d.push_back( 2 );

    EXPECT_EQ( 1, d.front() );
	d.pop_front();
    EXPECT_EQ( 2, d.front() );
}